package LogicTest;

import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;

import Logic.GeneralManagerLogic.GeneralManagerLogicInterface;
import Po.Manager;
import Po.Message;
import Po.Result;

public class GeneralLogicTest {

	GeneralManagerLogicInterface test;
	
	@Before
	public void setUp() throws Exception {
		//TODO
	}

	@After
	public void tearDown() throws Exception {
	}

	@Test
	public void testLogin() {
		Manager m = test.GeneralManagerLogin(new Manager("", ""));
		Assert.assertTrue(m.name.equals(""));
		Assert.assertTrue(m.password.equals(""));
	}
	
	@Test
	public void testPresent() {
		Message m = test.presentPromotion(null, 0, 0);
		Assert.assertTrue(m.result == Result.Success);
		Assert.assertTrue(m.reason.equals(""));
	}
	
	@Test
	public void testAdd() {
		Message m = test.addPromotion(null);
		Assert.assertTrue(m.result == Result.Success);
		Assert.assertTrue(m.reason.equals(""));
	}

}
